package com.team.order.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.team.common.core.annotation.Excel;
import com.team.common.core.web.domain.BaseEntity;

/**
 * 商户收支明细对象 biz_account_flow
 * 
 * @author 梁国瑞
 * @date 2025-07-10
 */
@Data
public class AccountFlow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 流水ID */
    private Long id;

    /** 商户ID */
    @Excel(name = "商户ID")
    private Long merchantId;

    /** 门店ID */
    @Excel(name = "门店ID")
    private Long shopId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 流水类型（income收入、expense支出、refund退款） */
    @Excel(name = "流水类型", readConverterExp = "income=收入,expense=支出,refund=退款")
    private String type;

    /** 交易金额 */
    @Excel(name = "交易金额")
    private BigDecimal amount;

    /** 交易来源 */
    @Excel(name = "交易来源")
    private String source;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime flowTime;
} 